﻿package plugin.juezhan.ui
{
    import uiresource.juezhan.*;

    public class headitemUIControl extends headitemUI implements ITitleItem
    {
        private var _data:Object;
        private var _selected:Boolean;

        public function headitemUIControl()
        {
            return;
        }// end function

        public function get selected() : Boolean
        {
            return this._selected;
        }// end function

        public function set selected(param1:Boolean) : void
        {
            if (this._selected == param1)
            {
                return;
            }
            this._selected = param1;
            selectkuang.visible = this._selected;
            return;
        }// end function

        public function get data() : Object
        {
            return this._data;
        }// end function

        public function set data(param1:Object) : void
        {
            this._data = param1;
            if (param1 == null)
            {
                this.label_num.text = "";
                this.lock.visible = true;
            }
            else
            {
                this.lock.visible = param1.lock;
                this.label_num.text = param1.name;
            }
            return;
        }// end function

    }
}
